package com.corot.codoc.dao;

import com.corot.codoc.bean.Content;
import com.corot.core.dao.BaseDao;
import org.springframework.stereotype.Repository;

/**
 * 内容DAO
 *
 * @author leesir
 */
@Repository
public class ContentDao extends BaseDao<Content> {

    public Content getContentBySegmentId(Integer segmentId){
        return get("from Content where segment.id=?",segmentId);
    }
}
